#ifndef READER_H
#define READER_H

#include <QObject>
#include <QRunnable>

#include "shell.h"

class Reader : public QObject, public QRunnable
{
    Q_OBJECT

    Shell *m_shell;
    volatile int m_timeout;

public:
    Reader(Shell *shell, int timeout, QObject *parent = 0);

    void run();

public slots:
    void set_timeout(int timeout);

signals:
    void i_m_reading();
    void i_m_waiting();
};

#endif // READER_H
